export enum CurrencyFiatEnum {
	AED = 'AED',
	ARS = 'ARS',
	BDT = 'BDT',
	BRL = 'BRL',
	CAD = 'CAD',
	CHF = 'CHF',
	CLP = 'CLP',
	CNY = 'CNY',
	COP = 'COP',
	CZK = 'CZK',
	DKK = 'DKK',
	DZD = 'DZD',
	EGP = 'EGP',
	EUR = 'EUR',
	GBP = 'GBP',
	HKD = 'HKD',
	IDR = 'IDR',
	ILS = 'ILS',
	INR = 'INR',
	JPY = 'JPY',
	KRW = 'KRW',
	KZT = 'KZT',
	MXN = 'MXN',
	MYR = 'MYR',
	NGN = 'NGN',
	NOK = 'NOK',
	NZD = 'NZD',
	PEN = 'PEN',
	PHP = 'PHP',
	PKR = 'PKR',
	PLN = 'PLN',
	QAR = 'QAR',
	RUB = 'RUB',
	SAR = 'SAR',
	SEK = 'SEK',
	THB = 'THB',
	TRY = 'TRY',
	TWD = 'TWD',
	USD = 'USD',
	VND = 'VND',
	ZAR = 'ZAR'
}
export enum CurrencyCryptoEnum {
	APT = 'APT',
	AVAX = 'AVAX',
	BNB = 'BNB',
	BONK = 'BONK',
	BRETT = 'BRETT',
	BTC = 'BTC',
	DOGE = 'DOGE',
	ETH = 'ETH',
	FLOKI = 'FLOKI',
	LTC = 'LTC',
	PEPE = 'PEPE',
	PNUT = 'PNUT',
	POL = 'POL',
	POPCAT = 'POPCAT',
	SHIB = 'SHIB',
	SOL = 'SOL',
	SUI = 'SUI',
	TON = 'TON',
	TRX = 'TRX',
	USDC = 'USDC',
	USDS = 'USDS',
	USDT = 'USDT',
	WIF = 'WIF',
	XRP = 'XRP'
}
export type CurrencyEnum = CurrencyFiatEnum | CurrencyCryptoEnum
// 货币小数位精度
export const currencyPrecision = <Record<CurrencyEnum, number>>{
	// 加密币
	USD: 2,
	EUR: 2,
	CNY: 2,
	CNY_GB: 2,
	CNY_NN: 2,
	TWD: 0,
	HKD: 2,
	JPY: 0,
	INR: 0,
	AED: 2,
	ARS: 0,
	BDT: 0,
	BRL: 2,
	CAD: 2,
	CHF: 2,
	CLP: 0,
	COP: 0,
	CZK: 2,
	DKK: 2,
	DZD: 0,
	EGP: 0,
	GBP: 2,
	IDR: 0,
	ILS: 2,
	KRW: 0,
	KZT: 0,
	MXN: 2,
	MYR: 2,
	NGN: 0,
	NOK: 2,
	NZD: 2,
	PEN: 2,
	PHP: 0,
	PKR: 0,
	PLN: 2,
	QAR: 2,
	RUB: 0,
	SAR: 2,
	SEK: 2,
	THB: 0,
	TRY: 0,
	VND: 0,
	ZAR: 2,
	// 法币
	BTC: 8,
	ETH: 8,
	USDT: 4,
	USDC: 4,
	USDS: 4,
	SOL: 8,
	TRX: 4,
	BNB: 8,
	LTC: 8,
	XRP: 4,
	TON: 8,
	AVAX: 8,
	POL: 4,
	SUI: 8,
	APT: 8,
	DOGE: 4,
	SHIB: 0,
	PEPE: 0,
	BONK: 0,
	WIF: 4,
	FLOKI: 0,
	POPCAT: 4,
	PNUT: 4,
	BRETT: 4
}
